﻿using System;
using System.Collections.Generic;
using System.Runtime.Remoting.Channels;
using System.Text;

namespace Kugar.Core.Remoting
{
    public class GetClientInfoServerSinkProvider : IServerChannelSinkProvider
    {
        private IServerChannelSinkProvider _nextProvider;

        public void GetChannelData(IChannelDataStore channelData)
        {
            
        }

        public IServerChannelSink CreateSink(IChannelReceiver channel)
        {
            var t = _nextProvider.CreateSink(channel);

            return new GetClientInfoServerSink(t);

        }

        public IServerChannelSinkProvider Next
        {
            get { return _nextProvider; }
            set { _nextProvider = value; }
        }
    }
}
